package com.etc;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;
import java.io.IOException;

/**
 * @Auther: zhezhe
 * @Date: 2018/10/2218:21
 * @Description:
 */
public class DataReduce extends Reducer<Text,Text,Text,Text> {

    @Override
    protected void reduce(Text key, Iterable<Text> values, Context context) throws
            IOException, InterruptedException {
        //直接将从map接受到的key作为key输出，value设为空
        context.write(key,new Text(""));
    }
}


